#coding=utf-8

import os

def os_basic():
    # print os.system('ls')

    #显示name
    print os.name

    #得到当前工作目录
    print os.getcwd()

    #返回指定工作目录下所有文件和目录名
    print os.listdir(os.getcwd())

def buildFile(filename):
    os.system('touch {}'.format(filename))

def set_test():
    print os.linesep
    print os.sep

def os_path_split(file_name):
    return os.path.split(file_name)

if __name__=='__main__':
    # os_basic()
    # buildFile('test.txt')
    set_test()
    file_path = os.listdir(os.getcwd())
    for file in file_path:
        print os.path.isdir(file)
        print os.path.isfile(file)


